<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="提现">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">

                            <div class="toolbor-module export">
                                <input type="button" onclick="exportxls()" value="导出列表" class="input-button export-btn"/>
                                <!-- <div style="height:22px;line-height:22px;float:left;color:red;margin-left:12px;">提现总额${((totalSum)!0)?string("##.##")}元 ，提现到账总额${((creditSum)!0)?string("##.##")}元 ，手续费总额${((feeSum)!0)?string("##.##")}元 </div> -->
                                <#if param??&&param.status??>
                                    <#assign status=(param.get("status"))?number >
                                        <#else>
                                            <#assign status=-1>
                                </#if>
                            </div>

                            <#if param?exists>
                                <#if param.get("dotime1")?exists><#assign dotime1=param.get("dotime1")></#if>
                                <#if param.get("dotime2")?exists><#assign dotime2=param.get("dotime2")></#if>
                            </#if>

                            <#if param??&&param.status??>
                                <#assign status=(param.get("status"))?number >
                                    <#else>
                                        <#assign status=0>
                            </#if>



                            <div class="toolbor-module search">
                                <div class="formTit">用户名:</div>
                                <input type="text" name="username" id="username" value="请输入用户名" class="search-value">
                                <#--
                                <div class="select-box" id="status">
                                <div class="tag-select">全部</div>
                                <ul class="tag-options">
                                    <li data-value="0" <#if status==0 >data-selected="selected"</#if> class="open-selected">全部</li>
                                    <li data-value="1" <#if status==1 >data-selected="selected"</#if>>已通过</li>
                                    <li data-value="2" <#if status==2 >data-selected="selected"</#if>>审核中</li>
                                    <li data-value="3" <#if status==3 >data-selected="selected"</#if>>未通过</li>
                                </ul>
                            </div>
                            -->
                            <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                        </div>

                        <div class="toolbor-module search">
                            <div class="formTit">时间：</div>
                            <input class="_search-value" type="text" name="dotime1" id="dotime1" value="${dotime1!}" onclick="change_picktime()"/>
                            <div class="formTit"> 到 </div>
                            <input class="_search-value" type="text"  name="dotime2" value="${dotime2!}" id="dotime2" onclick="change_picktime()"/>
                        </div>
        </div>
        <!--工具栏--}-->

        <div id="main" class="clearfix">
            <form action="" method="post">
                <table class="data-list">
                    <tr class="header">
                        <td>ID</td>
                        <td>用户名称</td>
                        <td>真实姓名</td>
                        <td>提现账号</td>
                        <td>类型</td>
                        <td>提现银行</td>
                        <td>提现总额</td>
                        <td>到账金额</td>
                        <td>手续费</td>
                        <td>提现时间</td>
                        <td>状态</td>
                        <!--<td>操作</td>  -->
                    </tr>
                    <#include "../../common/function.html">
                        <#list list as item>
                            <tr class="s">
                                <td>${(item.id!0)?c}</td>
                                <td><#if item.user??&&item.user.userName??><a onclick='alertPop("用户详细信息查看","url:post?${request.getContextPath()}/admin/attestation/viewUserInfo.html?userId=${item.user.userId?c}",500,230,"true","","true","text");' href="javascript:void(0)">${item.user.userName!}</a><#else>-</#if></td>
                                <td><#if item.user??&&item.user.realName??>${item.user.realName!}<#else>-</#if></td>
                                <td><#if item??&&item.accountBank.account??>${item.accountBank.account!}<#else>-</#if></td>
                                <td><#if item??&&item.accountBank.bank.memo??>${item.accountBank.bank.memo}<#else>-</#if></td>
                                <td><#if item??&&item.accountBank.bank.bankName??>${item.accountBank.bank.bankName!}<#else>-</#if></td>
                                <td><#if item??&&item.total??>${format2((item.total!"0"))}<#else>-</#if></td>
                                <td><#if item??&&item.credited??>${format2((item.credited!"0"))}<#else>-</#if></td>
                                <td><#if item??&&item.fee??>${format2((item.fee!"0"))}<#else>-</#if></td>
                                <td><#if item??&&item.addtime??>${item.addtime}<#else>-</#if></td>
                                <td><#if item.status==1>成功<#else>失败</#if></td>
                                <!-- <td><#if item.status==0||item.status==2><a href="viewCash.html?id=${item.id?c}">审核/查看</a><#else>-</#if></td> -->
                            </tr>
                        </#list>

                </table>
            </form>

            <!--底部工具栏--{-->
            <div id="bottomToolbar" class="clearfix">
                <div class="other-tool">
                    <dl class="refresh-data">
                        <dt class="refresh-data-icon"></dt>
                        <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                    </dl>
                </div>

                <!--翻页系统--{-->
                <div class="container s_formPage">
                    <#import "../../common/page.html" as pager>
                        <@pager.pagination page=page url="${pageUrl}" map=param style="style1" />
                </div>
                <!--翻页系统--}-->
            </div>
            <!--底部工具栏--}-->

            <script>
                var url = 'cashRecord.html?search=true';
                var xlsurl = 'cashRecord.html?type=export';
                var sou="";
                function sousuo(){
                    var username = $("#username").val();
                    if (username!=""&&username!="请输入用户名"){
                        sou += "&username="+username;
                    }
                    var status = $("#status").find(".open-selected").attr("data-value");
                    if (status!=""){
                        sou += "&status="+status;
                    }
                    var dotime1 = $("#dotime1").val();
                    var dotime2 = $("#dotime2").val();
                    if (dotime1!=null){
                        sou += "&dotime1="+dotime1;
                    }
                    if (dotime2!=null){
                        sou += "&dotime2="+dotime2;
                    }
                    if (sou!=""){
                        location.href=url+sou;
                    }
                }
                function exportxls(){
                    var num='${(page.total)?c}';
                    num=num.replace(",","");
                    if(num>30000){ //条数自己定义，但必须小于65536
                        alert("数据过多，请选择指定的时间进行数据查询导出！"); //提示信息根据不同的内容注意修改下。
                        return false;
                    }
                    var username = $("#username").val();
                    if (username!=""&&username!="请输入用户名"){
                        sou += "&username="+username;
                    }
                    var status = $("#status").val();
                    if (status!=""){
                        sou += "&status="+status;
                    }
                    var dotime1 = $("#dotime1").val();
                    var dotime2 = $("#dotime2").val();

                    if (dotime1!=null){
                        sou += "&dotime1="+dotime1;
                    }
                    if (dotime2!=null){
                        sou += "&dotime2="+dotime2;
                    }

                    if (sou!=""){
                        location.href=xlsurl+sou;
                    }else{
                        location.href=xlsurl;
                    }
                }
            </script>
        </div>
        </div>
    </div>
    <div class="mc-b"><#include "../foot.html"></div>
    <#include "../jsPage.html">
    </body>
</html>